package com.zjq.smartdevice.mapper;

import com.zjq.smartdevice.pojo.SysUserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @User zhangjiaqi
 * @Project smartdeviceplatgorm
 * @Package com.zjq.smartdevice.mapper
 * @Date 2022/3/14 17:38
 */

public interface SysUserInfoMapper {


    @Select("select * from sys_user_info where u_id=#{userid}")
    SysUserInfo findById(Long userid);

    @Select("select  * from sys_user_info")
    List<SysUserInfo> findAll();

    void addUser(SysUserInfo sysUserInfo);

    @Select("select * from sys_user_info where username=#{username}")
    SysUserInfo findByUsername(String username);

    @Select("select * from sys_user_info where phone=#{phonenum}")
    SysUserInfo findByPhone(String phonenum);

    @Select("select * from sys_user_info where email=#{email}")
    SysUserInfo findByEmail(String email);



}
